package com.xxwy.link.practice;

import com.xxwy.link.LinkedList;

/**
 * @author xxwy
 */
public class Main {

    public static void main(String[] args) {
        LinkedList<Integer> linkedList = new LinkedList<>();
        for (int i = 0; i < 5; i++) {
            linkedList.addFirst(i);
            System.out.println(linkedList);
        }
        linkedList.add(2,666);
        System.out.println(linkedList);

        linkedList.removeElement(2);
        System.out.println(linkedList);

        linkedList.set(3,33333);
        System.out.println(linkedList);

    }
}
